<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<div class="layout">
    <div style="float: right; width=0%;">
        <table class="details" cellspacing="0">
            <tr>
                <th class="details">Recursive</th>
                <td class="details">
                    <logic:equal name="roleValue" property="isRecursive" value="true">
                        <html:img page="/icons/enabled-16x16.png"/>
                    </logic:equal>
                    <logic:equal name="roleValue" property="isRecursive" value="false">
                        <html:img page="/icons/disabled-16x16.png"/>
                    </logic:equal>
                </td>
            </tr>
        </table>
    </div>
    <img src="<html:rewrite page='/icons/role-32x32.png'/>"/><span class="node-name"><beans:write name="roleValue" property="nodeValue.name"/></span>
    <p class="history">
        <span class="history-text">
            <velocityme:markup><beans:write name="roleValue" property="nodeValue.description"/></velocityme:markup>
        </span>
    </p>
    <table class="styled" cellspacing="0">
        <tr>
            <th class="styled">Permission</th>
            <th class="styled">Enabled</th>
        </tr>
        <logic:iterate name="permissionMap" property="keys" id="key">
            <tr>
                <td class="styled"><beans:write name="key"/></td>
                <td class="styled" style="text-align: center;">
                    <logic:equal name="permissionMap" property='<%= "object(" + key + ")" %>' value="true">
                        <html:img page="/icons/enabled-16x16.png"/>
                    </logic:equal>
                    <logic:equal name="permissionMap" property='<%= "object(" + key + ")" %>' value="false">
                        <html:img page="/icons/disabled-16x16.png"/>
                    </logic:equal>
                </td>
            </tr>
        </logic:iterate>
    </table>
</div>
